/* 登录注册页样式 */
.container-login {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-dialog {
    width: 400px;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.login-dialog:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.login-dialog h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.login-dialog h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.login-dialog .row {
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-dialog .row > span {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    margin-left: 5px;
}

.login-dialog .row > input {
    width: 100%;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.login-dialog .row > input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.login-dialog .row > input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.login-dialog #submit {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-top: 10px;
}

.login-dialog #submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.login-dialog #submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 注册页面特殊样式 */
.login-dialog[style*="420px"] {
    min-height: 500px;
}

/* 链接样式 */
.login-dialog .row a {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-dialog .row a:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

/* 实时验证样式 */
.login-dialog .row > input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.login-dialog .row > input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-login {
        padding: 10px;
    }
    
    .login-dialog {
        width: 95%;
        max-width: 400px;
        padding: 30px 25px;
    }
    
    .login-dialog h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .login-dialog .row {
        margin: 15px 0;
    }
    
    .login-dialog .row > input {
        height: 42px;
        font-size: 15px;
    }
    
    .login-dialog #submit {
        height: 42px;
        font-size: 15px;
    }
}